const crypto = require('crypto');
import config from 'static/js/config'
console.log(config.LOGIN_MM);
export default function hmac(data){
  let hmac = crypto.createHmac('md5', config.LOGIN_MM);
  return hmac.update(data).digest('base64');
}

